package ibm.abacus.filepath;

import java.io.File;
import java.io.IOException;

public class PathTest {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		String[] filenames = { "1.txt", "1.TXT", "d://./1/../1.txt", "d:/1.txt" };
		for (String filename : filenames) {
			File f = new File(filename);
			System.out.println(f.getPath());
			System.out.println(f.getAbsolutePath());
			System.out.println(f.getCanonicalPath());
		}
	}
}
